package com.mall.project.sys.model.dto;

import com.mall.common.core.model.entity.TreeNode;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * <p>
 * 菜单树DTO
 * </p>
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class MenuTreeDTO extends TreeNode {

    @ApiModelProperty(notes = "菜单名称")
    private String name;
    @ApiModelProperty(notes = "类型:0:目录,1:菜单,2:按钮,3:权限")
    private Integer type;
    @ApiModelProperty(notes = "路由地址")
    private String router;
    @ApiModelProperty(notes = "图标")
    private String icon;
    @ApiModelProperty(notes = "权限标识")
    private String perm;
    @ApiModelProperty(value = "显示顺序")
    private Integer orderNum;
    @ApiModelProperty(value = "状态 0：正常 1：禁用")
    private Integer status;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
}
